<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$C.webtitle}</title>
<meta content="{$C.webkeywords}" name="Keywords">
<meta name="description" content="{$C.webdescription}" />
<script src="./Public/js/jquery.js"></script>
<script src="./Public/js/common.js"></script>
<script src="./Public/js/tbox/box.js"></script>

<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<link href="./Public/js/tbox/box.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}
function turnoff(obj){
document.getElementById(obj).style.display="none";
}
</script>
</head>
<div id="pcbg">
<body onload="MM_preloadImages('__PUBLIC__/img/grsyhover.jpg','__PUBLIC__/img/tdwdhover.png')">
<include file="Public:header"/>

<div id="pcmain">
  <div id="pcmainleft">
    <div id="pcmainleft1">
  <a href="{:U('grwbsy')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','__PUBLIC__/img/grsyhover.png',1)"><img src="__PUBLIC__/img/grsy.jpg" name="Image8" width="17" height="16" border="0" id="Image8" />
  个人首页</a>
  <a href="{:U('pcxx')}" class="pclb1"onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','__PUBLIC__/img/sxhover.png',1)"><img src="__PUBLIC__/img/sx.jpg" name="Image11" width="17" height="11" border="0" id="Image11"/>
  私信</a>
  <a href="{:U('tdwd')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','__PUBLIC__/img/tdwdhover.png',1)"><img src="__PUBLIC__/img/tdwd.jpg" name="Image9" width="17" height="15" border="0" id="Image9" />
  提到我的</a>
  <a href="{:U('pl')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','__PUBLIC__/img/plhover.png',1)"><img src="__PUBLIC__/img/pl.jpg" name="Image10" width="17" height="14" border="0" id="Image10"/>
  评论</a>
  <a href="{:U('sc')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','__PUBLIC__/img/schover.png',1)"><img src="__PUBLIC__/img/sc.jpg" name="Image12" width="17" height="15" border="0" id="Image12"/>
  收藏</a>
  </div><!--pcmainleft1-->
  <div id="pcmainleft2">
  <a href="{:U('grsz')}" class="pclb2"><img src="__PUBLIC__/img/szhover.png" width="17" height="19" />
  个人设置</a>
  <a href="{:U('hy')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','__PUBLIC__/img/hyhover.png',1)"><img src="__PUBLIC__/img/hy.jpg" name="Image13" width="17" height="16" border="0" id="Image13"/>
  好友</a>
  </div><!--pcmainleft2-->
  <div id="pcmainleft3">
  <a href="{:U('aqzx')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','__PUBLIC__/img/aqzxhover.png',1)"><img src="__PUBLIC__/img/aqzx.jpg" name="Image14" width="17" height="13" border="0" id="Image14"/>
  安全中心</a>
  </div><!--pcmainleft3-->
  </div>



  <div id="pcmainright">
    <div id="mbsztc">
      <div id="mbsztc1">
        <volist name="pifu" id="pifu">
        <div class="mbsztc1class">
          <div class="mbsztc1class1" style="cursor:pointer;" onclick="pifuxuanze('{$pifu.id}')" id="pifu_{$pifu.id}"><img src="{$pifu.tupian}" style="width:124px;height:86px;" /></div>
          <div class="mbsztc1class2">{$pifu.name}</div>
        </div>
		</volist>
        <div class="mbsztc1class">
          <div class="mbsztcdrb"><img src="__PUBLIC__/img/drb.png" width="36" height="32" /></div>
          <div class="mbsztc1class1" style="cursor:pointer;" onclick="pifuxuanze2('5')" id="pifudongtai"></div>
          <div class="mbsztc1class2">动态</div>
        </div>
      </div>
<script>
function pifuxuanze(tid){
	$(".mbsztc1class1").css('border','1px solid #ddd');
	$("#pifu_"+tid).css('border','1px solid #f00');
	$("input[name='muban']").val(tid);
}
function pifuxuanze2(tid){
	$(".mbsztc1class1").css('border','1px solid #ddd');
	$("#pifudongtai").css('border','1px solid #f00');
	$("input[name='muban']").val(tid);
}
function checkpifu(){	
	var muban=$("input[name='muban']");
	if(muban.val()=='0'){
		alert("必须选择模板");
		return false;	
	}	
}
</script>
      <div id="mbsztc2">
      <form action="{:U('Index/mubanshezhi')}" method="post" onsubmit="return checkpifu();">
      <input type="hidden" name="muban" value="0" />
      <input type="image" src="__PUBLIC__/img/mbbaocun.jpg" width="109" height="36" style="margin-right:100px;float:left;" />
      </form>
      <a href="#closetc" onclick="javascript:turnoff('mbsztc')"><img src="__PUBLIC__/img/mbquxiao.jpg" width="109" height="36" style="float:left;" /></a>
      </div>
    </div>
    <div id="scpcmainright1">
      <div id="scpcmainright1-1"><div id="mbsz1">个人设置</div>
        <div id="mbsz2"><a href="#" onclick="MM_changeProp('mbsztc','','display','block','DIV')">模版设置</a></div>
      </div>
    </div>
<script>
function shaias(){
var zhi=$('select[name="sheng"]').val();
$.post("{:U('get_shi2')}", {sheng:zhi}, function(v){
   $('select[name="shi"]').html(v);
});
}
</script>
    <div id="pcmainright2">
	<form name="form" action="{:U('dogrsz')}" method="post" onsubmit="return checkform();">
      <div id="grsz1">
        <div class="grsz1class">
          <div id="grsz1tx"><img id="touxiang" src="<neq name='touxiang' value=''>{$touxiang}<else/>__PUBLIC__/images/nopic.gif</neq>" width="96" height="96"/></div>
          <div id="grsz1sctx">上传头像</div>
          <div class="upimg-box" style="margin-top:65px;float:left;"><div id="fileQueue"></div><input id="file_upload" type="file" /><input name="touxiang" type="hidden" value="{$touxiang}" id="touxiangyincang" /></div>
          <span class="scfkystbz" style="float:left;margin-top:80px;">标准尺寸：190 * 190</span>
          <div style="padding-left:10px;padding-right:10px;height:30px;line-height:30px;float:left;margin-top:65px;background:#ccc;color:#fff;text-align:center;" id="touxiangaaaaaa">
          <a href="javascript:;" onclick="touxiangjiequ()" style="color:#fff;display:block;">点击此处截取头像</a>
          </div>
<script>
function touxiangjiequ(){
	var touxiang=$('#touxiangyincang').val();
	$.post("{:U('dotouxiangjiequ')}", {cid:touxiang}, function(v){
	$('#touxiangyincang').val(v);
	$('#grsz1tx img').attr('src',v);
	$('#touxiangaaaaaa').html("已截取，请保存");
	},'JSON');
	
}
</script>
        </div>
        <div class="grsz1class">
        <div style="float:left;" id="fangkeyeshoutuasdfsadf">
            <img id="fangkeyeshoutu" src="<neq name='fangkeyeshoutu' value=''>{$fangkeyeshoutu}<else/>__PUBLIC__/images/nopic.gif</neq>" width="110" height="29.4" style="float:left;margin-left:20px;" />
        </div>
            <div id="grsz1scqt">上传访客页首图</div>
        	<div class="upimg-box" style="float:left;margin-left:20px;"><div id="fileQueues"></div><input id="file_uploads" type="file" /><input name="fangkeyeshoutu" type="hidden" value="{$fangkeyeshoutu}" id="fangkeyeshoutuyincang" /></div>
            <span class="scfkystbz" style="float:left;">标准尺寸：1004 * 268</span>
          <div style="padding-left:10px;padding-right:10px;height:30px;line-height:30px;float:left;background:#ccc;color:#fff;text-align:center;" id="fangkeyeshoutuaaaaaa">
          <a href="javascript:;" onclick="fangkeyeshoutujiequ()" style="color:#fff;display:block;">点击此处截取访客页首图</a>
          </div>
<script>
function fangkeyeshoutujiequ(){
	var fangkeyeshoutu=$('#fangkeyeshoutuyincang').val();
	$.post("{:U('dofangkeyeshoutujiequ')}", {cid:fangkeyeshoutu}, function(v){
	$('#fangkeyeshoutuyincang').val(v);
	$('#fangkeyeshoutuasdfsadf img').attr('src',v);
	$('#fangkeyeshoutuaaaaaa').html("已截取，请保存");
	},'JSON');
	
}
</script>
        </div>
        <div class="grsz1class"><span class="grsz1mc">昵称:</span><input name="nicheng" type="text" id="grsz1qtk" value="{$nicheng}" /></div>
        <div class="grsz1class"><span class="grsz1mc">性别:</span>
        <input name="xingbie" type="radio" class="xban" id="man" value="1" <eq name="xingbie" value="1">checked</eq> /><span class="xbfont">男</span>
        <input name="xingbie" type="radio" class="xban" id="woman" value="2" <eq name="xingbie" value="2">checked</eq> /><span class="xbfont">女</span></div>
        <div class="grsz1class"><span class="grsz1mc">所在地:</span>
            <select name="sheng" class="diqu" onchange="shaias();">
            <option value="0">省</option>          
            <volist name="shengs" id="shengs">
            <option value="{$shengs.city_id}" <eq name="shengs.city_id" value="$sheng">selected</eq>>{$shengs.city_name}</option>
            </volist>
            </select>
            
            <select name="shi" class="diqu">
            <option value="0">市</option>          
            <volist name="shis" id="shis">
            <option value="{$shis.city_id}" <eq name="shis.city_id" value="$shi">selected</eq>>{$shis.city_name}</option>
            </volist>
            </select>
 
        </div>
        <div class="grsz1class"><span class="grsz1mc">个性宣言:</span><textarea name="gexingxuanyan" id="gxxy">{$gexingxuanyan}</textarea>
        <p class="gxxyts">还可以输入100字</p></div>
      </div>
      <div id="grsz2">
        <div id="grsz2-1">隐私设置</div>
        <div class="grsz2-2">
          <div class="grsz2-2-1"><span class="grsz2-2font1">评论</span><span class="grsz2-2font2">设置谁可以评论</span></div>
          <div class="grsz2-2-2"><ul><li><input name="pinglunshezhi" type="radio" class="xban" id="man" value="0" <eq name="pinglunshezhi" value="0">checked</eq> /><span class="xbfont">所有人</span></li><li><input name="pinglunshezhi" type="radio" class="xban" id="man" value="1" <eq name="pinglunshezhi" value="1">checked</eq> /><span class="xbfont">好友</span></li><li><input name="pinglunshezhi" type="radio" class="xban" id="man" value="2" <eq name="pinglunshezhi" value="2">checked</eq> /><span class="xbfont">自己</span></li></ul></div>
        </div>
        <div class="grsz2-2">
          <div class="grsz2-2-1"><span class="grsz2-2font1">@提到我的</span><span class="grsz2-2font2">设置接收哪些人@提到我的微博/评论</span></div>
          <div class="grsz2-2-2"><ul><li><input name="atshezhi" type="radio" class="xban" id="man" value="0" <eq name="atshezhi" value="0">checked</eq> /><span class="xbfont">所有人</span></li><li><input name="atshezhi" type="radio" class="xban" id="man" value="1" <eq name="atshezhi" value="1">checked</eq> /><span class="xbfont">好友</span></li><li><input name="atshezhi" type="radio" class="xban" id="man" value="2" <eq name="atshezhi" value="2">checked</eq> /><span class="xbfont">自己</span></li></ul></div>
        </div>
        <div class="grsz2-2">
          <div class="grsz2-2-1"><span class="grsz2-2font1">访问足迹</span><span class="grsz2-2font2">设置访问微博是否留下足迹</span></div>
          <div class="grsz2-2-2"><ul><li><input name="hengjishezhi" type="radio" class="xban" id="man" value="0" <eq name="hengjishezhi" value="0">checked</eq> /><span class="xbfont">是</span></li><li><input name="hengjishezhi" type="radio" class="xban" id="man" value="1" <eq name="hengjishezhi" value="1">checked</eq> /><span class="xbfont">否</span></li></ul></div>
        </div>
      </div>
      <div id="grsz3">
      <div id="grsz2-1">黑名单</div>
      <volist name="heimingdan" id="heimingdan">
        <dl><dt>{$heimingdan.name}</dt><dd><span>{$heimingdan.ctime|date='Y年m月d日',###}</span><a href="javascript:;" onclick="del({$heimingdan.id});"><img src="__PUBLIC__/img/jiechu.jpg" width="35" height="16" /></a></dd>
        </dl>
      </volist>
      <div id="grsz3-2"></div>
      <input type="image" src="__PUBLIC__/img/mbbaocun.jpg" width="109" height="36" style="margin-left:600px;margin-top:20px;"/>
      </div>
    </form>
    </div><!--pcmainright2-->
  </div>
  <div id="pcmaindi"></div>
</div>
<include file="Public:bottom"/>

</div><!--pcbg-->

<script language="javascript">

//图片上传
$("#file_upload").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadify.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/touxiang',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	100 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="touxiang"]').val(response);
			$('#touxiang').attr('src', response);
		}
});

$("#file_uploads").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadify.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/fangkeyeshoutu',
		'queueID'        : 'fileQueues',
		'sizeLimit'      :	100 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="fangkeyeshoutu"]').val(response);
			$('#fangkeyeshoutu').attr('src', response);
		}
});

function del(kid){
kid = kid ? kid : getChecked();
kid = kid.toString();
if(kid == ''){
	ui.error('你没有选择任何选项！');
	return false;
}
if(!confirm('删除后无法恢复，确定删除？'))
	return false;

$.post("{:U('delheimingdan')}", {ids:kid}, function(v){
	if( v == 1 ){
		ui.success('删除成功！');
		location.reload("{:U('grsz')}");
	}else{
		ui.error('删除失败！');
	}
});
} 
</script>

</body>
</html>
